<script>
    var request = new XMLHttpRequest();
    request.open('GET', 'http://127.0.0.1:8080', true)
    request.send(null)
    request.onreadystatechange = function () {
        if (request.readyState == 4 && request.status == 200) {
            console.log(request.responseText);
        }
    }
</script>